﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq.Mapping;

namespace StudentMgmt.Model
{
    [Serializable]
    [Table(Name = "Department")]
    public class DepartmentInfo
    {
        public DepartmentInfo() { }

        public DepartmentInfo(string departmentId, string departmentName)
        {
            this.Department_Id = departmentId;
            this.Department_Name = departmentName;
        }

        [Column(Name = "Department_Id", IsPrimaryKey = true, DbType = "varchar(3)")]
        public string Department_Id { get; set; }

        [Column(Name = "Department_Name", DbType = "varchar(50)")]
        public string Department_Name { get; set; }
    }
}
